﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<TelerikMvcApplicationASPX.Models.User>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>UserManager</h2>
<%=Html.ActionLink( "Create New","Create")%>
 <%= Html.Telerik().Grid(Model)
        .Name("GridUser")
        .Columns(columns =>
        {
            columns.Bound(o => o.IdUser).Width(100);
            columns.Bound(o => o.UserName).Width(100);
            columns.Bound(o => o.Role.RoleName);
            //columns.Bound(o => o.OrderDate).Format("{0:MM/dd/yyyy}").Width(120);
        })
        .Groupable()
        .Sortable()
        .Pageable()
        .Filterable()
    %>

</asp:Content>
